
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>行情 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="quote_depth.html" />
    
    
    <link rel="prev" href="order_unfinshed.md" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="./">
            
                <a href="./">
            
                    
                    简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="install.html">
            
                <a href="install.html">
            
                    
                    安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="setting.md">
            
                <span>
            
                    
                    配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="api.md">
            
                <span>
            
                    
                    API
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="assets.html">
            
                <a href="assets.html">
            
                    
                    用户资产
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1.1" data-path="assets.html">
            
                <a href="assets.html">
            
                    
                    资产查询
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="order_create.md">
            
                <span>
            
                    
                    订单
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.2.1" data-path="order_create.md">
            
                <span>
            
                    
                    新订单
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2.2" data-path="order_cancel.md">
            
                <span>
            
                    
                    取消订单
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2.3" data-path="order_history.md">
            
                <span>
            
                    
                    历史订单
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2.4" data-path="order_unfinshed.md">
            
                <span>
            
                    
                    未成交订单
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter active" data-level="1.5.3" data-path="quote_depth.html">
            
                <a href="quote_depth.html">
            
                    
                    行情
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.5.3.1" data-path="quote_depth.html">
            
                <a href="quote_depth.html">
            
                    
                    委托深度
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3.2" data-path="quote_latest_price.md">
            
                <span>
            
                    
                    最新价格
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3.3" data-path="quote_trade_record.html">
            
                <a href="quote_trade_record.html">
            
                    
                    成交记录
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3.4" data-path="quote_kline.html">
            
                <a href="quote_kline.html">
            
                    
                    K线数据
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="websocket.html">
            
                <a href="websocket.html">
            
                    
                    websocket行情推送
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >行情</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h4 id="&#x6DF1;&#x5EA6;&#x4FE1;&#x606F;">&#x6DF1;&#x5EA6;&#x4FE1;&#x606F;</h4>
<h5 id="1-&#x8BF7;&#x6C42;&#x5730;&#x5740;">1) &#x8BF7;&#x6C42;&#x5730;&#x5740;</h5>
<blockquote>
<p>{haoquote_host}/api/v1/quote/depth</p>
</blockquote>
<h5 id="2-&#x8C03;&#x7528;&#x65B9;&#x5F0F;&#xFF1A;http-get">2) &#x8C03;&#x7528;&#x65B9;&#x5F0F;&#xFF1A;HTTP GET</h5>
<h5 id="3-&#x63A5;&#x53E3;&#x63CF;&#x8FF0;&#xFF1A;">3) &#x63A5;&#x53E3;&#x63CF;&#x8FF0;&#xFF1A;</h5>
<blockquote>
<p>&#x59D4;&#x6258;&#x76D8;&#x6DF1;&#x5EA6;&#x6570;&#x636E;</p>
</blockquote>
<h5 id="4-&#x8BF7;&#x6C42;&#x53C2;&#x6570;">4) &#x8BF7;&#x6C42;&#x53C2;&#x6570;:</h5>
<h5 id="get&#x53C2;&#x6570;">GET&#x53C2;&#x6570;:</h5>
<table>
<thead>
<tr>
<th>&#x5B57;&#x6BB5;&#x540D;&#x79F0;</th>
<th style="text-align:center">&#x7C7B;&#x578B;</th>
<th style="text-align:center">&#x5FC5;&#x586B;</th>
<th style="text-align:center">&#x5B57;&#x6BB5;&#x8BF4;&#x660E;</th>
<th style="text-align:center">&#x5907;&#x6CE8;</th>
</tr>
</thead>
<tbody>
<tr>
<td>symbol</td>
<td style="text-align:center">string</td>
<td style="text-align:center">Y</td>
<td style="text-align:center">&#x4EA4;&#x6613;&#x5BF9;&#x7684;symbol</td>
<td style="text-align:center">eg: symbol=usdjpy</td>
</tr>
<tr>
<td>limit</td>
<td style="text-align:center">int</td>
<td style="text-align:center">N</td>
<td style="text-align:center"></td>
<td style="text-align:center">&#x9ED8;&#x8BA4;10&#xFF0C;&#x6700;&#x5927;500</td>
</tr>
</tbody>
</table>
<h5 id="5-&#x8BF7;&#x6C42;&#x8FD4;&#x56DE;&#x7ED3;&#x679C;">5) &#x8BF7;&#x6C42;&#x8FD4;&#x56DE;&#x7ED3;&#x679C;:</h5>
<pre><code>{
    &quot;data&quot;: {
        &quot;asks&quot;: [
            [
                &quot;121.097&quot;,
                &quot;0.51&quot;
            ],
            [
                &quot;121.134&quot;,
                &quot;1.00&quot;
            ],
            [
                &quot;121.172&quot;,
                &quot;1.00&quot;
            ],
            [
                &quot;121.284&quot;,
                &quot;1.00&quot;
            ],
            [
                &quot;121.358&quot;,
                &quot;1.00&quot;
            ],
            [
                &quot;121.584&quot;,
                &quot;1.00&quot;
            ],
            [
                &quot;121.619&quot;,
                &quot;1.00&quot;
            ],
            [
                &quot;121.624&quot;,
                &quot;1.00&quot;
            ],
            [
                &quot;121.681&quot;,
                &quot;1.00&quot;
            ],
            [
                &quot;121.751&quot;,
                &quot;1.00&quot;
            ]
        ],
        &quot;bids&quot;: [
            [
                &quot;120.819&quot;,
                &quot;1.00&quot;
            ],
            [
                &quot;120.760&quot;,
                &quot;1.00&quot;
            ],
            [
                &quot;120.678&quot;,
                &quot;1.00&quot;
            ],
            [
                &quot;120.630&quot;,
                &quot;1.00&quot;
            ],
            [
                &quot;120.507&quot;,
                &quot;1.00&quot;
            ],
            [
                &quot;120.485&quot;,
                &quot;1.00&quot;
            ],
            [
                &quot;120.248&quot;,
                &quot;1.00&quot;
            ],
            [
                &quot;120.156&quot;,
                &quot;1.00&quot;
            ],
            [
                &quot;120.019&quot;,
                &quot;1.00&quot;
            ],
            [
                &quot;119.943&quot;,
                &quot;1.00&quot;
            ]
        ]
    },
    &quot;ok&quot;: 1
}
</code></pre><h5 id="6-&#x8BF7;&#x6C42;&#x8FD4;&#x56DE;&#x7ED3;&#x679C;&#x53C2;&#x6570;&#x8BF4;&#x660E;">6) &#x8BF7;&#x6C42;&#x8FD4;&#x56DE;&#x7ED3;&#x679C;&#x53C2;&#x6570;&#x8BF4;&#x660E;:</h5>
<table>
<thead>
<tr>
<th>&#x5B57;&#x6BB5;&#x540D;&#x79F0;</th>
<th style="text-align:center">&#x7C7B;&#x578B;</th>
<th style="text-align:center">&#x5B57;&#x6BB5;&#x8BF4;&#x660E;</th>
<th style="text-align:center">&#x5907;&#x6CE8;</th>
</tr>
</thead>
<tbody>
<tr>
<td>asks</td>
<td style="text-align:center">[][2]string</td>
<td style="text-align:center">&#x5356;&#x76D8;</td>
<td style="text-align:center">string[0]:&#x4EF7;&#x683C;&#xFF0C;string[1]:&#x6570;&#x91CF;</td>
</tr>
<tr>
<td>bids</td>
<td style="text-align:center">[][2]string</td>
<td style="text-align:center">&#x4E70;&#x76D8;</td>
<td style="text-align:center">&#x540C;&#x4E0A;</td>
</tr>
</tbody>
</table>
<h5 id="end">END</h5>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="order_unfinshed.md" class="navigation navigation-prev " aria-label="Previous page: 未成交订单">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="quote_depth.html" class="navigation navigation-next " aria-label="Next page: 委托深度">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"行情","level":"1.5.3","depth":2,"next":{"title":"委托深度","level":"1.5.3.1","depth":3,"path":"quote_depth.md","ref":"quote_depth.md","articles":[]},"previous":{"title":"未成交订单","level":"1.5.2.4","depth":3,"path":"order_unfinshed.md","ref":"order_unfinshed.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"quote_depth.md","mtime":"2023-10-09T14:45:02.339Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2023-10-09T15:21:10.904Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

